I want to add a addEntityPacket to a player if the packet with id $id not exists. What I tried didn't work. PHP: if($p->level->getEntity($id) != null) {//Packet exists} else {//Don't exists}