change method name to isLocalIdExists.Change the parameter to Recipe
instead of using String