Ensure element exists before attempting to find the trigger