Basic array length and key presence check.