Initialize tags array

It throws an exception if tags are not set