check if array keys are set