Use lambda functions for filtering. Requires php version >= 5.3