Made sure the PHP isn't spaghetti code