Fixing broken check to confirm gear UID existence in mongo