Check $flashContainer dynamically