Somehow this failed on me

Added the extra check and all is fine.
Result of pulling merge request on minor data checking issue
Update to docs