Made this check work for all entities that can be placed.