conditional check for meta data

This should hopefully fix some issues with my current project.