Exception cache feature: Fix is_a function use due to a unusual behavior on PHP >= 5.3.7