Only a proposal. For me "If variable.form_field is not None:" is better readable.