$value ) { if ( empty( $value ) ) { continue; } $method = 'set_' . $key; if ( method_exists( $query, $method ) ) { $query->$method( $value ); } } } }