Separated interface from implementation when checking the APT cache