Use function_exists to check for CiviCRM instead of is_plugin_active

Thanks to Eran Schoellhorn (@swingline0) for pointing out
 that is_plugin_active isn't usually available outside of wp-admin!

Closes playgenhub/civi_member_sync#1