Better checks for DEBUG_PACKET