Centralises the length(x@some_slot) > 0 idiom used in several Shiny
modules to decide whether optional data (contrasts, gene sets, read
reports, DEXSeq results etc) is available before showing or hiding UI for
it.
Examples
data(airway, package = "airway")
ese <- as(airway, "ExploratorySummarizedExperiment")
eselist <- ExploratorySummarizedExperimentList(ese)
#> Creating ExploratorySummarizedExperimentList object
has_slot_data(eselist, "contrasts")
#> [1] FALSE
