in_array function for check if value is exists in array or not