Might be nice to check that the length of warnings is 1 instead of greater than 0 so we know if something else starts flagging errors on this.