Prevented 2 errors from happening 

Aren't things like this just meant to be "IsValid( ent )"?