checking that package exists