PHP Collections using Traits and anonymous functions.