Somehow this failed on me

Added the extra check and all is fine.