private boolean isInWhiteList(String tpl){
  if ((!whiteList.isEmpty() && whiteList.contains(tpl)) || (whiteList.isEmpty())) {
    return true;
  }
  return false;
}

private boolean isInWhiteList ( String tpl ) { if ( ( ! whiteList . isEmpty ( ) && whiteList . contains ( tpl ) ) || ( whiteList . isEmpty ( ) ) ) { return true ; } return false ; }
checks if the input string is in white list
