Should this be "if (!hasPrevious()) {"