Splitting the if in order to be able to know which part of the one-liner was triggering an error.
In the future I'll receive a more detailed traceback and work on this
Related with #679