Remove the `if` line. There is always a project member, and you'll get an empty list of email_ids if not.