What would the use case to checkToDelete() return a value before the ajax complete function? The real value is returned by the ajax complete function.