checking entity by model name