Won't this give a null pointer exception if tags isn't specified?