Safe way to check if function of name given exists.