if ($thing->position->x == 0 and $thing->position->y == 0) { ...; }