you can check if $a_item1 is blank by $a_item1 == ''