changes null and guard check in _.first and _.last to reflect style used in _.initial and _.rest