what if tags is an empty string? and also, tags is an array alr?