Be explicit with the return type
Extract function to lint

Shorter function, split out parsing and result handling.