guard against non-existent categories