Php Check If Variable Is Array Mutable