if ( key.length() > 0 ){....}