forgot braces on isEmpty