check to make sure function actually exists