How to use a promise value for an array filter method?

ok, this looks good. I will let you know in some time.