Added function for checking if function exists