Add snippet to check if function exists.