use ``null !== $handler`` here