check if tty-type function exists or not