Function to check whether a site has a certain extension loaded

Change-Id: I0fc57f974b19da5d929f119f759f5cd6d56c5e43