This should be checking the value not the key

Currently looks for key not value, as the array for levels is unkeyed this will result in the level never being used