Simplified isFunction validator