One could probably use !empty() here. But someone providing className with falsely values is quite unlikely.