Array#filter for older browsers.