Check if view is loaded before checking