Checking for entity = null wont work because the engine doesnt null the pointer when it has been removed. Most annoying thing ever. Had to hook ent_remove and do it myself..