Missing `not` in above if statement. We want to throw the error when the queries are **not** present but this is throwing the error when queries is present.