Just change this line to:
if(!(Global.contactAList.get(i).getSecondPhone() == null))