public function getValueForFieldName($key) { if ($this->{$key}) { return $this->{$key}; } return false; }