Adding isKey method