There is no need to test for both, if its not `undefined` and `true`, just test for `true`. You could also save it in a variable which makes the code more readable. 
    isGrayscale = options.grayscale
    if(isGrayscale){
    }else{}