Avoid unnecessary use of length/1