In case that `node_api` is `None` it seems to be a bad idea to continue. Shouldn't it output an error message and return False?