curved braces necessary for not_if

without curved braces the function does not run in Chef 11.6