Ensure isNodeJS is a boolean.