Check if $images has length