Checks whether the user interface is ready for interaction.
Specifically, it verifies that the UI is not busy (e.g., displaying a modal dialog) and is fully prepared to accept user input.
is_ui_ready()
Check if the UI is ready
is_ui_ready(); // returns 1 if ready, 0 if not