Use typeof function check for define, 0.7.1