public function hasReturnType() { $type = $this->getReturnType(); return !empty($type) && !ReflectionHelper::isScalar($type); }