Package: add new is_compressed helper