`form_name_group` will evaluate to False if it is == '' so the second check is redundant.