Refactored the checking for css insertion ability