Added label guard for nil values courtesy of Chris Ozenne