Use is_phalcon_class()

Use `is_phalcon_class()` function introduced earlier to detect Phalcon classes instead of less reliable `Z_OBJCE_P(object)->type == ZEND_INTERNAL_CLASS`.

`is_phalcon_class()` is used mainly to avoid expensive function calls and use much faster native functions.