reuse the result of #last and #first in order to avoid generating temporary objects
reuse the result in order to avoid generating temporary objects
use constant in where inserting an empty