move the call to_a so that coalesce can be called with an activerecord relation