early stages of an underscore.js clone in PHP