public function findByName($name, User $actor = null)
    {
        $query = Group::where('name_singular', $name)->orWhere('name_plural', $name);

        return $this->scopeVisibleTo($query, $actor)->first();
    }