New function: Check(query)