check isset before is_array

Was throwing a notice on a select menu where the datasource was a post type that had no published posts.