Copied is_plugin_active from core