if (!Array.isArray(args)) {
      throw new Error('Unexpected type of parameters. Expecting args to be array.');
    }
Creates a new instance of Phantom

@param args command args to pass to phantom process
@param [phantomPath] path to phantomjs executable
@param [logger] object containing functions used for logging
@param [logLevel] log level to apply on the logger (if unset or default)