check to see if there has been a call on the hook before

Was having issues with this when other extensions were modifying the query. You can get round it with priority order but it is easy enough just dropping this line in