protected function selectedButNotPartOfEntry($attribute, array $entry) { $lcAttribute = MBString::strtolower($attribute); $inSelectedAttributes = in_array($lcAttribute, MBString::array_change_value_case($this->selectedAttributes)); $existsInEntry = array_key_exists($lcAttribute, MBString::array_change_key_case($entry)); return $inSelectedAttributes && !$existsInEntry; }