check if fuction exists