method "isEmpty" to Frontend, right exceptions