why not checking that `tags` is not array before being saved?