null check of metadata