This kind of DIY logic does not care much about looks. It only cares about solving the problem in the fastest and strangest way possible.