can you please add brackets to this statement and move the `throw` on a new line?