private function getValueFromArray($arr) { return isset($arr['value']) ? $arr['value'] : (isset($arr['operator']) ? $arr['operator'] : null); }