``` // Ensure integer entity IDs are valid. if (!empty($ids)) { $this->cleanIds($ids); } ```