is.optional bug fix