Improved version check

Improved version check as $this->input['draw'] gets set either way this distinction gets lost when finally deciding on which output to return.