public function hasIcon(\ElggEntity $entity, $size, $type = 'icon') { return $this->getIcon($entity, $size, $type)->exists(); }