public function hasList($propName) { return isset($this->{$propName}) && (is_array($this->{$propName}) && count($this->{$propName}) > 0 || is_object($this->{$propName})); }