please use strict comparison and use ``null === $type`` to check for ``null`` rather than ``is_null``, to have consistent coding standards