New way of writing has_metadata