Do you think it's worth checking for errors upon entry to this function too, just in case someone left one set?