Only build extensions array if extensions key is present