We don't need to check `buffer` again here since you already checked on line 927 unless you remove the wrapping `else` block.