Minor improvement ("" === isEmpty)