Adding a no_calls() function to check whether a function call has been made