Added if statements to test the existence of UILabels