private function isEmptyPatchDocument($patchDocument) { return empty($patchDocument) || !is_array($patchDocument) || count($patchDocument) === 0; }