Converted Service.exists? to FFI.