isFunction checking for FF3 problem