Expose isEmpty function to QML