return boolean if statement java