Apply suggestions from code review
Apply suggestions from code review

Co-Authored-By: Nicolas Traut <ba5e41df6f94b49a603156026d57410dfa82a5db@gmail.com>
Squishymedia/bids-validator,Squishymedia/BIDS-Validator,nellh/bids-validator,nellh/bids-validator,nellh/bids-validator