public function hasRandomSort()
    {
        foreach ($this->sortsBy as $sortBy) {
            if (self::TYPE_RANDOM === $sortBy['type']) {
                return true;
            }
        }

        return false;
    }
public function hasRandomSort()
    {
        foreach ($this->sortsBy as $sortBy) {
            if (self::TYPE_RANDOM === $sortBy['type']) {
                return true;
            }
        }

        return false;
    }
public function hasRandomSort ( ) { foreach ( $ this -> sortsBy as $ sortBy ) { if ( self :: TYPE_RANDOM === $ sortBy [ 'type' ] ) { return true ; } } return false ; }
Has random sort.

@return bool
Has random sort .