Minor change in method call.

Changed from empty() to isEmpty() for code consistency.