public function searchRegex($searchRegex)
    {
        if (!is_bool($searchRegex) && $searchRegex !== 'false' && $searchRegex !== 'true') {
            throw new \InvalidArgumentException('$searchRegex needs to be a boolean');
        }
        $this->searchRegex = $searchRegex;
        return $this;
    }