React Check If Url Exists