public function setShuffle($shuffle)
    {
        if (is_bool($shuffle)) {
            $this->shuffle = $shuffle;
        } else {
            $msg = "Shuffle must be a boolean, '" . gettype($shuffle) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }