The assignment is implicitly successful. What you need to test is whether $field->label is empty. Please write code that is obvious when read. If the code is not crystal clear I can only guarantee than someone, sometime in the future will change the code to something different because what was written made no sense.