Where are you writing the code? In Workbench Process (OR) in the form?
If you are checking in workbench, you have the condition checking functionality inside the Xpath mapping editor itself.
If you are checking in form, then the code you posted, does not work.
if(homePhone.rawValue == null || homePhone.rawValue == ""){
//Write your processing statements here.
}
Thanks
Srini