Change = to == and added ? to a method