@Moondeer I probably lack too much context here, but judging by the comment at the bottom, you're including stylesheets based on if a shortcode is used or not. Is that right? Could an alternative be to just always have the stylesheet? That way, you could just get rid of the entire if/else block.