Add filter method to promise