Can you guys tell me what really is the problem in this if statement,'getItem' and 'getQty 'are both strings

```
if((getQty != null && getQty.length()>0) || (getItem!= null && getItem.length()>0))
    {
     //do something
     }
  else
    {
      //do something
     }

```