if_array($date) {
if (isset($date['day'])) {

こんな感じですか。でも、これって$date自体がなかったらエラーになりませんか?