Why not leave the default as nil (don't set a default) and then just if config[:json_filename]?