Changed is_instance_of to type_matches because it was bothering me.