Check if package exists and create if it does not exist