public function isBlockedBy($id): bool
    {
        if (is_array($id)) {
            return count($id) === $this->blockerUsers()->whereIn('blocker_id', $id)->count();
        }

        return $this->blockerUsers()->where('blocker_id', $id)->exists();
    }
public function isBlockedBy($id): bool
    {
        if (is_array($id)) {
            return count($id) === $this->blockerUsers()->whereIn('blocker_id', $id)->count();
        }

        return $this->blockerUsers()->where('blocker_id', $id)->exists();
    }
public function isBlockedBy ( $ id ) : bool { if ( is_array ( $ id ) ) { return count ( $ id ) === $ this -> blockerUsers ( ) -> whereIn ( 'blocker_id' , $ id ) -> count ( ) ; } return $ this -> blockerUsers ( ) -> where ( 'blocker_id' , $ id ) -> exists ( ) ; }
Check if it is being blocked.

@param  array|int  $id
@return bool
Check if it is being blocked .