Add check for type of item metadata