by_ids scoped modified to return none if no user_ids present as argument