7.0 PEP8, Deprecation, Spelling and Logic

You can also put:

return bool(leave_ids)