Further avoid using "[ .. ] && .. || .." as "if .. then .. else ..".