Use return in error condition instead of if/else logic where possible.