User isKindOfClass instead of isSubclassOfClass and use where: method instead of enumerating
Add ofType