PHP 5.2 doesn't seem to like is_a()