Small fix for providing an zero (integer) to the 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.