In Japanese, konna koto mo arou ka to こんな事もあろうかと, meaning "[I] thought something like this might happen, [so I prepared this in advance]," is a phrase commonly as a gag in comedy manga and anime, by a character who is just too well prepared, specially for a situation nobody would have expected to happen.