Better check for whether "define" is undefined