public function typeIsAvailable($type) { return in_array($type, array_values($this->types)) ? true : false; }