Used the normalised array, so that all of the isset statements could be taken out for much cleaner code.