A bit more exception checking/input sanitising for SPRES