Cleaning...

Removed an unnecessary 'if ... if else ... if else ... else' chain in favor for a switch and case statement.