Replace is_a with is_subclass_of

third argument support for `is_a` has been added
in php5.3.9 only, which means every php version
earlier will throw FATAL.