Fixed problem with 0 as needle in in_array()