add overload

Signed-off-by: Mattias Andrée <maandree@operamail.com>
add guard

Signed-off-by: Mattias Andrée <maandree@operamail.com>