forgot parentheses on isEmpty