Reducing the amount of PHP if's.