I believe you can simply pass the argument to `:binary.match`, this should be the most efficient way. `:binary.match` already handles both a binary and a list of binaries and returns `:nomatch` in the case of 0 matches.