fixed isEntity method