checking the existence of functions