removed a  consider-using-in pitfall case
I'll pass.
**Problem**:
The code was incurring into the consider-using-in pitfall case, as described by Pylint documentation here https://github.com/vald-phoenix/pylint-errors/blob/master/plerr/errors/refactoring/R1714.md

**Solution**:
Applied adequate refactoring. Only a single line of code was changed