1. Shouldn't this be `(!buffer)`? If it's out of bounds for example it will be undefined, not null
2. Per our coding conventions, need space between if and parens
3. Open curly brace on same line as iff
4. But can put the continue on the same line, so just `if (..) continue;`