#js# Check if function is defined