Returns 1 if the specified layer is the active layer.