Im currently using str_for_entname() to get the objects entitiy name, if it has no name then it's a level block, it works but is there a more elegant way?