Got rid of extraneous 'end' at the end of in-line conditional statement