Fix "last" helper for HHVM