Whoops, forgot some return statements and keyExists(), keyExists saying 2 is valid though