The first bar check here is useless.
Bar number check should be at the end of the line, as in the LilyPond documentation (a good reference for code style, because convert-ly is mostly tested on it).