solve @help giving out isEmpty function