While statements are not checked for boolean conditions, fixes #309