public function isMod($userId = null)
    {
        if (in_array($userId ?: User::loggedId(), $this->getMods())) {
            return true;
        }
        return false;
    }
public function isMod($userId = null)
    {
        if (in_array($userId ?: User::loggedId(), $this->getMods())) {
            return true;
        }
        return false;
    }
public function isMod ( $ userId = null ) { if ( in_array ( $ userId ? : User :: loggedId ( ) , $ this -> getMods ( ) ) ) { return true ; } return false ; }
Checks if user is moderator for this forum.
@param int|null $userId user ID or null for current signed in.
@return bool
Checks if user is moderator for this forum .