This line can be `if obj and ev` instead of adding the extra `if` wrapper below