I think Does Entity Class Exist function should be clearer
I expect it does not bother with Locking or State
If u care for such things, create a new Overload called DoesEntityClassExist with map of required states to exact match 
and add to object param the OBJATTR_IsLocked to unify it