public function getSingleScalarOrNullResult() { try { return $this->getSingleScalarResult(); } catch (AttributeNotFoundException $e) { return null; } }