modify validator condition of string empty and not equal to 0

When $input is a empty string like $input = "", the condition of ($input != 0) will return false. So I modified the operator from != to !== . Also, when $input is equal to "0", (empty($input)) will return true, modified this to $input == "" . 
Hope is will help this project to improve.