Pass if query result not include 'history' key