Retire is_dangerous() and inline its content