Check if params are valid before requesting data. Fix issue #72