Small fix if there is an zero (integer) passed to validateAccept function.

If 0 (integer), is passed to the validateAccept function, the function always returns 1. This small fix will prevent that the 'in_array' function returns zero if there is an zero (integer) provided as $value.