Do not user String.isEmpty for better compatibility.