$.max return nil when array is empty
use [Int]()
Merge pull request #103 from alsotang/master

$.max return nil when array is empty