Implement array filter method