Return 0 instead of NSNotFound in case of an error
High-level action to persist an array of dictionaries