Added functionality for check if a package exists