This line should probably be up just under `$query = clone $this->query` so it's clear it's used again later in the function, rather than belonging just to this if/else block.