diff --git a/src/Element/HttpQueryString.php b/src/Element/HttpQueryString.php index cdec590..57a1e51 100644 --- a/src/Element/HttpQueryString.php +++ b/src/Element/HttpQueryString.php @@ -36,7 +36,7 @@ class HttpQueryString implements \ArrayAccess { * A http query string. */ function __toString() { - return (count($this->query) > 0 ? '?' : '') . http_build_query($this->query); + return ($this->query ? '?' : '') . http_build_query($this->query); } /**