Get rid of is_a which is deprecated (sometimes)