add checks for other  array keys