check whether flash is available