Adds filtering to array mapping.