Another replacement of kind_of? with is_a?