Thanks @ccc Replacing if statements (particularly nested if statements) by a simple statement is always better