function getAllowedType() { if (!$this->allowed_types) { return array(null, null); } return $this->allowed_types[0]; }