Why don't you do:

if(!"".equals(securityToken() && enableNode == null)