Use inquirer's 'when' instead of 'filter' to check if a package name is available on npm