Nitpick, move the `if ..` to end of the whole User.as block (`end if attrs...`)