bugs!!
Catch IndexOutOfBounds to return null