checks if the function is not disabled, else you get an uncatched exception

before:
http://picul.de/N_X

after:
http://picul.de/N_A